home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Views / Standard Arrangements / PaneColumn.h < prev    next >
Text File  |  1997-06-28  |  539b  |  31 lines

  1. // PaneColumn.h
  2.  
  3. #ifndef PaneColumn_h
  4. #define PaneColumn_h
  5.  
  6. #ifndef PaneColumnBase_h
  7. #include "PaneColumnBase.h"
  8. #endif
  9.  
  10. template < uint32 paneCount >
  11. class PaneColumn: public PaneColumnBase
  12.   {
  13.     private:
  14.         ArrangedPane panes[ paneCount ];
  15.     
  16.     public:
  17.         PaneColumn()
  18.           : PaneColumnBase( panes, paneCount )
  19.           {
  20.             SetParents();
  21.           }
  22.         
  23.         ArrangedPane& operator[]( uint32 i )
  24.             { Assert( i < paneCount ); return panes[ i ]; }
  25.         
  26.         const Pane& operator[]( uint32 i ) const
  27.             { Assert( i < paneCount ); return panes[ i ]; }
  28.   };
  29.  
  30. #endif
  31.